﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="StockManage.aspx.cs" Inherits="ServicesSheet_StockManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Titile" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <infolight:webdatasource id="Master" runat="server" autoapply="True" webdatasetid="WMaster"
        allowadd="True" allowdelete="True" allowprint="True" allowupdate="True" alwaysclose="False"
        autoapplyforinsert="False" autorecordlock="False" autorecordlockmode="NoneReload"
        cachedataset="True" commandname="" commandtext="" datamember="Services_OfficeSupplies_Stock"
        eof="True" keyvalues="" lastindex="-1" marker="'" masterdatasource="" packetrecords="100"
        quoteprefix="[" quotesuffix="]" remotename="" selectcommand="" tablename="">
    </infolight:webdatasource>
    <infolight:webdatasource id="wdsServices_OfficeSupplies_StockSId" runat="server"
        selectalias="Usasdb" selectcommand="SELECT dbo.Services_SV_Supplies.SId, dbo.Services_SV_Supplies.SName, &#13;&#10;      dbo.Services_SV_Supplies_SV_Type.TName, &#13;&#10;      SUM(dbo.Services_OfficeSupplies_Stock.StockCount) AS SSCount, &#13;&#10;      dbo.Services_SV_Supplies.SType,&#13;&#10;      dbo.Services_SV_Supplies.Remark&#13;&#10;FROM dbo.Services_SV_Supplies INNER JOIN&#13;&#10;      dbo.Services_SV_Supplies_SV_Type ON &#13;&#10;      dbo.Services_SV_Supplies.TypeId = dbo.Services_SV_Supplies_SV_Type.TId LEFT OUTER&#13;&#10;       JOIN&#13;&#10;      dbo.Services_OfficeSupplies_Stock ON &#13;&#10;      dbo.Services_SV_Supplies.SId = dbo.Services_OfficeSupplies_Stock.SId&#13;&#10;GROUP BY dbo.Services_SV_Supplies.SId, dbo.Services_SV_Supplies.SName, &#13;&#10;      dbo.Services_SV_Supplies_SV_Type.TName, dbo.Services_SV_Supplies.SType,dbo.Services_SV_Supplies.Remark"
        cachedataset="True">
    </infolight:webdatasource>
    <infolight:webdatasource id="wdsServices_OfficeSupplies_StockEmpId" runat="server"
        selectalias="Usasdb" selectcommand="SELECT Employees.EmployeeID, Employees.EmpName, 
      Department.DepartmentName
FROM Employees INNER JOIN
      Department ON 
      Employees.DepartmentId = Department.DepartmentId
WHERE (Employees.EmpStatus = 1)" cachedataset="True">
    </infolight:webdatasource>
    <infolight:webdatasource id="wdsServices_SV_Supplies_SV_Type" runat="server" selectalias="Usasdb"
        selectcommand="select Services_SV_Supplies_SV_Type.TId,Services_SV_Supplies_SV_Type.TName from Services_SV_Supplies_SV_Type &#13;&#10;Order by Services_SV_Supplies_SV_Type.TId"
        cachedataset="True">
    </infolight:webdatasource>
    <infolight:webdefault id="wdServices_OfficeSupplies_Stock" runat="server" datamember="Services_OfficeSupplies_Stock"
        datasourceid="Master">
        <fields>
      <InfoLight:DefaultFieldItem FieldName="StockId" DefaultValue="0" />
    <InfoLight:DefaultFieldItem DefaultValue="GetEmployeeId()" FieldName="EmpId" />
    <InfoLight:DefaultFieldItem DefaultValue="1" FieldName="Operate" />
    <InfoLight:DefaultFieldItem FieldName="OpeDate" DefaultValue="GetNowDate()" />
   </fields>
    </infolight:webdefault>
    <infolight:webdatasource id="wdServices_SV_Supplies" runat="server" cachedataset="True"
        selectalias="Usasdb" selectcommand="select Services_SV_Supplies.SId,Services_SV_Supplies.SName from Services_SV_Supplies">
    </infolight:webdatasource>
    <infolight:webvalidate id="wvServices_OfficeSupplies_Stock" runat="server" datamember="Services_OfficeSupplies_Stock"
        datasourceid="Master" forecolor="Red" validatechar="*" altrowcss="" rowcss="">
        <fields>
<InfoLight:ValidateFieldItem FieldName="SId" CheckNull="True"></InfoLight:ValidateFieldItem>
<InfoLight:ValidateFieldItem FieldName="StockCount" CheckNull="True"></InfoLight:ValidateFieldItem>
<InfoLight:ValidateFieldItem FieldName="SumPrice" CheckNull="True"></InfoLight:ValidateFieldItem>
</fields>
    </infolight:webvalidate>
    <infolight:webnavigator id="WebNavigator1" runat="server" bindingobject="wgvMaster"
        width="100%" statusstrip="WebStatusStrip1"
        cssclass="NavigatorBar" CtlHeight="25">
        <navcontrols>
                <InfoLight:ControlItem ControlName="Add" ControlText="穝糤" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/add_C.gif" MouseOverImageUrl="../image/uipics/add2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/add3_C.gif" />
                <InfoLight:ControlItem ControlName="Apply" ControlText="郎" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/apply_C.gif" MouseOverImageUrl="../image/uipics/apply2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/apply3_C.gif" />
                <InfoLight:ControlItem ControlName="Abort" ControlText="斌" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/abort_C.gif" MouseOverImageUrl="../image/uipics/abort2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/abort3_C.gif" />
                <InfoLight:ControlItem ControlName="Query" ControlText="琩高" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/query_C.gif" MouseOverImageUrl="../image/uipics/query2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/query3_C.gif" />
                <InfoLight:ControlItem ControlName="Export" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../Image/UIPics/Export3_C.gif" ImageUrl="../Image/UIPics/Export_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Export2_C.gif" Size="48" />
            </navcontrols>
        <navstates>
                <InfoLight:WebNavigatorStateItem StateText="Initial" />
                <InfoLight:WebNavigatorStateItem StateText="Browsed" />
                <InfoLight:WebNavigatorStateItem StateText="Inserting" />
                <InfoLight:WebNavigatorStateItem StateText="Editing" />
                <InfoLight:WebNavigatorStateItem StateText="Applying" />
                <InfoLight:WebNavigatorStateItem StateText="Changing" />
                <InfoLight:WebNavigatorStateItem StateText="Querying" />
                <InfoLight:WebNavigatorStateItem StateText="Printing" />
            </navstates>
        <queryfields>
            <InfoLight:WebQueryField Caption="名称" Condition="%%" DefaultValue="" FieldName="SName"
                Mode="TextBox" />
            <InfoLight:WebQueryField Caption="类别" Condition="%%" DefaultValue="" FieldName="TName"
                Mode="TextBox" />
            <InfoLight:WebQueryField Caption="数量" Condition="&lt;=" DefaultValue="" FieldName="StockCount"
                Mode="" />
            <InfoLight:WebQueryField Caption="日期" Condition="=" DefaultValue="" FieldName="OpeDate"
                Mode="Calendar" />
        </queryfields>
    </infolight:webnavigator>
    <table cellpadding="0" cellspacing="5" class="TbSearch">
        <tr>
            <td style="width: 100px">
                <asp:Label ID="Label1" runat="server" Text="办公品名称："></asp:Label>
            </td>
            <td>
                <infolight:webrefval id="QuerySId" runat="server" datasourceid="wdsServices_OfficeSupplies_StockSId"
                    datatextfield="SName" datavaluefield="SId" openrefwidth="610" height="24px" width="160px">
                    <columns>
                            <InfoLight:WebRefColumn ColumnName="SId" HeadText="物品编码" Width="60" />
                            <InfoLight:WebRefColumn ColumnName="SName" HeadText="名称" Width="100" />
                            <InfoLight:WebRefColumn ColumnName="SType" HeadText="类型" Width="50" />
                            <InfoLight:WebRefColumn ColumnName="TName" HeadText="类别" Width="100" />
                            <InfoLight:WebRefColumn ColumnName="Remark" HeadText="备注" Width="100" />
                        </columns>
                </infolight:webrefval>
            </td>
            <td style="width: 100px">
                <asp:Label ID="Label2" runat="server" Text="办公品分类："></asp:Label>
            </td>
            <td>
                <infolight:webdropdownlist id="WebDropDownList1" runat="server" width="160px" datasourceid="wdsServices_SV_Supplies_SV_Type"
                    datatextfield="TName" datavaluefield="TId" appenddatabounditems="True" autoinsertemptydata="True"
                    height="28px">
                </infolight:webdropdownlist>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label6" runat="server" Text="日期"></asp:Label>
            </td>
            <td >
                <asp:DropDownList ID="NdYear" runat="server" Width="55px">
                    <asp:ListItem Selected="True" Value="0">选择</asp:ListItem>
                    <asp:ListItem>2008</asp:ListItem>
                    <asp:ListItem>2009</asp:ListItem>
                    <asp:ListItem>2010</asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="NMonth" runat="server" Width="45px">
                    <asp:ListItem Value="1">1月</asp:ListItem>
                    <asp:ListItem Value="2">2月</asp:ListItem>
                    <asp:ListItem Value="3">3月</asp:ListItem>
                    <asp:ListItem Value="4">4月</asp:ListItem>
                    <asp:ListItem Value="5">5月</asp:ListItem>
                    <asp:ListItem Value="6">6月</asp:ListItem>
                    <asp:ListItem Value="7">7月</asp:ListItem>
                    <asp:ListItem Value="8">8月</asp:ListItem>
                    <asp:ListItem Value="9">9月</asp:ListItem>
                    <asp:ListItem Value="10">10月</asp:ListItem>
                    <asp:ListItem Value="11">11月</asp:ListItem>
                    <asp:ListItem Value="12">12月</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td colspan="2" style="text-align:right">
                <span class="roundbtn">
                    <asp:LinkButton ID="btnSearch" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;查 询&nbsp;&nbsp;&nbsp;&nbsp;" OnClick="btnSearch_Click"></asp:LinkButton>
                </span>&nbsp;&nbsp;&nbsp;&nbsp; <span class="roundbtn">
                    <asp:LinkButton ID="btnClear" runat="server" Text=" 清 除 条 件 " OnClick="btnClear_Click"></asp:LinkButton>
                </span>&nbsp;&nbsp;&nbsp;&nbsp;
            </td>
        </tr>
    </table>
    <infolight:webgridview id="wgvMaster" runat="server" cellpadding="5" datasourceid="Master"
        forecolor="#333333" width="100%" aborticonurl="../Image/UIPics/Abort.gif" addiconurl="../Image/UIPics/Add.gif"
        applyiconurl="../Image/UIPics/Apply.gif" canceliconurl="../Image/UIPics/Cancel.gif"
        mouseoveraborticonurl="../Image/UIPics/Abort2.gif" mouseoveraddiconurl="../Image/UIPics/Add2.gif"
        mouseoverapplyiconurl="../Image/UIPics/Apply2.gif" mouseovercanceliconurl="../Image/UIPics/Cancel2.gif"
        mouseoverokiconurl="../Image/UIPics/OK2.gif" mouseoverqueryiconurl="../Image/UIPics/Query2.gif"
        okiconurl="../Image/UIPics/OK.gif" 
        queryiconurl="../Image/UIPics/Query.gif" headerstylewrap="False"
        backcolor="White" bordercolor="White" borderstyle="Groove" borderwidth="2px"
        datamember="Services_OfficeSupplies_Stock" showfooter="True" totalactive="True"
        totalcaption="合计:" PageSize="15">
        <pagersettings mode="NumericFirstLast" />
        <footerstyle forecolor="Red" font-bold="True"></footerstyle>
        <navcontrols>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/add2.gif" ControlText="add" ControlName="Add" ControlType="Image" ImageUrl="../image/uipics/add.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/ok2.gif" ControlText="Insert" ControlName="OK" ControlType="Image" ImageUrl="../image/uipics/ok.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/cancel2.gif" ControlText="cancel" ControlName="Cancel" ControlType="Image" ImageUrl="../image/uipics/cancel.gif"></InfoLight:ControlItem>
</navcontrols>
        <columns>
<asp:TemplateField ShowHeader="False"><EditItemTemplate>
<asp:ImageButton id="ImageButton1" runat="server" CommandName="Update" Text="Update" __designer:wfdid="w42" ImageUrl="~/Image/UIPics/OK.gif" CausesValidation="True"></asp:ImageButton>&nbsp;<asp:ImageButton id="ImageButton2" runat="server" CommandName="Cancel" Text="Cancel" __designer:wfdid="w43" ImageUrl="~/Image/UIPics/Cancel.gif" CausesValidation="False"></asp:ImageButton> 
</EditItemTemplate>
<ItemTemplate>
<asp:ImageButton id="ImageButton3" runat="server" CommandName="Edit" Text="Edit" __designer:wfdid="w40" ImageUrl="~/Image/UIPics/Edit.gif" CausesValidation="False"></asp:ImageButton>&nbsp;<asp:ImageButton id="ImageButton4" runat="server" CommandName="Delete" Text="Delete" __designer:wfdid="w41" ImageUrl="~/Image/UIPics/Delete.gif" CausesValidation="False"></asp:ImageButton> 
</ItemTemplate>
    <headerstyle wrap="False" />
</asp:TemplateField>
                <asp:TemplateField HeaderText="编号" SortExpression="StockId">
                    <edititemtemplate>
<asp:TextBox id="TextBox3" runat="server" Width="50px" BorderStyle="None" BackColor="#E0E0E0" Text='<%# Bind("StockId") %>' __designer:wfdid="w68" ReadOnly="True"></asp:TextBox>
</edititemtemplate>
                    <footertemplate>
<asp:TextBox id="TextBox3" runat="server" Width="50px" BorderStyle="None" BackColor="#E0E0E0" Text='<%# Bind("StockId") %>' __designer:wfdid="w69" ReadOnly="True"></asp:TextBox>
</footertemplate>
                    <itemtemplate>
<asp:TextBox id="TextBox3" runat="server" Width="50px" BorderStyle="None" BackColor="#E0E0E0" Text='<%# Bind("StockId") %>' __designer:wfdid="w67" ReadOnly="True"></asp:TextBox>
</itemtemplate>
                </asp:TemplateField>
               
                <asp:TemplateField HeaderText="办公用品" SortExpression="SId">
                    <edititemtemplate>
<asp:TextBox id="TextBox1" runat="server" Width="24px" Text='<%# Bind("SId") %>' __designer:wfdid="w13"></asp:TextBox><asp:TextBox id="TextBox2" runat="server" Width="100px" Text='<%# Bind("SName") %>' __designer:wfdid="w14"></asp:TextBox><InfoLight:WebRefButton id="WebRefButton1" runat="server" Width="32px" __designer:wfdid="w15" Caption="选择" RefURL="../ServicesSheet/SServices_SV_Supplies.aspx" RefURLWidth="900" RefURLLeft="100" RefURLTop="100" RefURLHeight="450"><MatchControls>
<InfoLight:MatchControl ControlID="TextBox1"></InfoLight:MatchControl>
<InfoLight:MatchControl ControlID="TextBox2"></InfoLight:MatchControl>
<InfoLight:MatchControl ControlID="tbSType"></InfoLight:MatchControl>
<InfoLight:MatchControl ControlID="tbTName"></InfoLight:MatchControl>
<InfoLight:MatchControl ControlID="HiddenField1"></InfoLight:MatchControl>
</MatchControls>
</InfoLight:WebRefButton> <asp:HiddenField id="HiddenField1" runat="server" __designer:wfdid="w16" Value='<%# Bind("UnitPrice") %>'></asp:HiddenField> 
</edititemtemplate>
                    <footertemplate>
<asp:TextBox id="TextBox1" runat="server" Width="24px" Text='<%# Bind("SId") %>' __designer:wfdid="w17"></asp:TextBox><asp:TextBox id="TextBox2" runat="server" Width="100px" Text='<%# Bind("SName") %>' __designer:wfdid="w18"></asp:TextBox><InfoLight:WebRefButton id="WebRefButton1" runat="server" Width="32px" __designer:wfdid="w19" Caption="选择" RefURL="../ServicesSheet/SServices_SV_Supplies.aspx" RefURLWidth="900" RefURLLeft="100" RefURLTop="100" RefURLHeight="450"><MatchControls>
<InfoLight:MatchControl ControlID="TextBox1"></InfoLight:MatchControl>
<InfoLight:MatchControl ControlID="TextBox2"></InfoLight:MatchControl>
<InfoLight:MatchControl ControlID="tbSType"></InfoLight:MatchControl>
<InfoLight:MatchControl ControlID="tbTName"></InfoLight:MatchControl>
<InfoLight:MatchControl ControlID="HiddenField1"></InfoLight:MatchControl>
</MatchControls>
</InfoLight:WebRefButton> <asp:HiddenField id="HiddenField1" runat="server" __designer:wfdid="w20" Value='<%# Bind("UnitPrice") %>'></asp:HiddenField> 
</footertemplate>
                    <itemtemplate>
<InfoLight:WebDropDownList id="WebDropDownList1" runat="server" Width="180px" DataSourceID="wdServices_SV_Supplies" DataValueField="SId" DataTextField="SName" AutoInsertEmptyData="False" __designer:wfdid="w11" SelectedValue='<%# Bind("SId") %>' DriverObject OnlyShowSelectText="True" FilterObject Filter></InfoLight:WebDropDownList> <asp:HiddenField id="HiddenField1" runat="server" __designer:wfdid="w12" Value='<%# Bind("UnitPrice") %>'></asp:HiddenField> 
</itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="型号" SortExpression="SType">
                    <edititemtemplate>
<asp:TextBox id="tbSType" runat="server" Width="80px" Text='<%# Bind("SType") %>' __designer:wfdid="w33"></asp:TextBox> 
</edititemtemplate>
                    <footertemplate>
<asp:TextBox id="tbSType" runat="server" Width="80px" Text='<%# Bind("SType") %>' __designer:wfdid="w34"></asp:TextBox> 
</footertemplate>
                    <itemtemplate>
<asp:Label id="Label2" runat="server" Width="80px" Text='<%# Bind("SType") %>' __designer:wfdid="w44"></asp:Label> 
</itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="类别" SortExpression="TName">
                    <edititemtemplate>
<asp:TextBox id="tbTName" runat="server" Width="120px" Text='<%# Bind("TName") %>' __designer:wfdid="w36"></asp:TextBox> 
</edititemtemplate>
                    <footertemplate>
<asp:TextBox id="tbTName" runat="server" Width="120px" Text='<%# Bind("TName") %>' __designer:wfdid="w37"></asp:TextBox> 
</footertemplate>
                    <itemtemplate>
<asp:Label id="Label5" runat="server" Width="120px" Text='<%# Bind("TName") %>' __designer:wfdid="w35"></asp:Label> 
</itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="数量" SortExpression="StockCount">
                    <edititemtemplate>
<asp:TextBox id="tbCount" runat="server" Width="80px" Text='<%# Bind("StockCount") %>' __designer:wfdid="w39"></asp:TextBox> 
</edititemtemplate>
                    <footertemplate>
<asp:TextBox id="tbCount" runat="server" Width="80px" Text='<%# Bind("StockCount") %>' __designer:wfdid="w40"></asp:TextBox> 
</footertemplate>
                    <itemtemplate>
<asp:Label id="Label3" runat="server" Width="80px" Text='<%# Bind("StockCount") %>' __designer:wfdid="w55"></asp:Label> 
</itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="金额(元)" SortExpression="SumPrice">
                    <edititemtemplate>
<asp:TextBox id="tbPrice" runat="server" Width="80px" Text='<%# Bind("SumPrice") %>' __designer:wfdid="w42"></asp:TextBox> 
</edititemtemplate>
                    <footertemplate>
<asp:TextBox id="tbPrice" runat="server" Width="80px" Text='<%# Bind("SumPrice") %>' __designer:wfdid="w43"></asp:TextBox> 
</footertemplate>
                    <itemtemplate>
<asp:Label id="Label4" runat="server" Width="80px" Text='<%# Bind("SumPrice") %>' __designer:wfdid="w45"></asp:Label> 
</itemtemplate>
                </asp:TemplateField>
            <asp:TemplateField HeaderText="操作人员" SortExpression="EmpId">
                    <edititemtemplate>
<InfoLight:WebRefVal id="wrvServices_OfficeSupplies_StockEmpIdE" runat="server" Width="120px" DataSourceID="wdsServices_OfficeSupplies_StockEmpId" DataValueField="EmployeeID" DataTextField="EmpName" __designer:wfdid="w45" ReadOnly="True" DataBindingField="EmpId" MultiLanguage="False" ResxFilePath="" BindingText="" ButtonImageUrl="../Image/refval/RefVal.gif" UpdatePanelID="" ResxDataSet="" BindingValue='<%# Bind("EmpId") %>' UseButtonImage="True" PostBackButonClick="False" AllowAddData="False"><Columns>
<InfoLight:WebRefColumn ColumnName="DepartmentName" HeadText="所在部门" Width="100"></InfoLight:WebRefColumn>
<InfoLight:WebRefColumn ColumnName="EmployeeID" HeadText="员工编号" Width="100"></InfoLight:WebRefColumn>
<InfoLight:WebRefColumn ColumnName="EmpName" HeadText="员工姓名" Width="100"></InfoLight:WebRefColumn>
</Columns>
</InfoLight:WebRefVal> 
</edititemtemplate>
                    <footertemplate>
<InfoLight:WebRefVal id="wrvServices_OfficeSupplies_StockEmpIdF" runat="server" Width="120px" DataSourceID="wdsServices_OfficeSupplies_StockEmpId" DataValueField="EmployeeID" DataTextField="EmpName" __designer:wfdid="w46" ReadOnly="True" DataBindingField="EmpId" MultiLanguage="False" ResxFilePath="" BindingText="" ButtonImageUrl="../Image/refval/RefVal.gif" UpdatePanelID="" ResxDataSet="" BindingValue='<%# Bind("EmpId") %>' UseButtonImage="True" PostBackButonClick="False" AllowAddData="False"><Columns>
<InfoLight:WebRefColumn ColumnName="DepartmentName" HeadText="所在部门" Width="100"></InfoLight:WebRefColumn>
<InfoLight:WebRefColumn ColumnName="EmployeeID" HeadText="员工编号" Width="100"></InfoLight:WebRefColumn>
<InfoLight:WebRefColumn ColumnName="EmpName" HeadText="员工姓名" Width="100"></InfoLight:WebRefColumn>
</Columns>
</InfoLight:WebRefVal> 
</footertemplate>
                    <itemtemplate>
<InfoLight:WebRefVal id="wrvServices_OfficeSupplies_StockEmpId" runat="server" Width="120px" BorderStyle="None" BackColor="Transparent" DataSourceID="wdsServices_OfficeSupplies_StockEmpId" DataValueField="EmployeeID" DataTextField="EmpName" __designer:wfdid="w44" ReadOnly="True" DataBindingField="EmpId" MultiLanguage="False" ResxFilePath="" BindingText="" ButtonImageUrl="../Image/refval/RefVal.gif" UpdatePanelID="" ResxDataSet="" BindingValue='<%# Bind("EmpId") %>' UseButtonImage="True" PostBackButonClick="False" AllowAddData="False"><Columns>
<InfoLight:WebRefColumn ColumnName="DepartmentName" HeadText="所在部门" Width="100"></InfoLight:WebRefColumn>
<InfoLight:WebRefColumn ColumnName="EmployeeID" HeadText="员工编号" Width="100"></InfoLight:WebRefColumn>
<InfoLight:WebRefColumn ColumnName="EmpName" HeadText="员工姓名" Width="100"></InfoLight:WebRefColumn>
</Columns>
</InfoLight:WebRefVal> 
</itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="状态" SortExpression="Operate" Visible="False">
                    <edititemtemplate>
<InfoLight:WebDropDownList id="WebDropDownList2" runat="server" Width="50px" AutoInsertEmptyData="False" __designer:wfdid="w48" SelectedValue='<%# Bind("Operate") %>' DriverObject OnlyShowSelectText="False" FilterObject Filter Enabled="False"><asp:ListItem Selected="True" Value="1">入库</asp:ListItem>
</InfoLight:WebDropDownList>
</edititemtemplate>
                    <footertemplate>
<InfoLight:WebDropDownList id="WebDropDownList2" runat="server" Width="50px" AutoInsertEmptyData="False" __designer:wfdid="w49" SelectedValue='<%# Bind("Operate") %>' DriverObject OnlyShowSelectText="False" FilterObject Filter Enabled="False"><asp:ListItem Selected="True" Value="1">入库</asp:ListItem>
</InfoLight:WebDropDownList>
</footertemplate>
                    <itemtemplate>
<InfoLight:WebDropDownList id="WebDropDownList2" runat="server" Width="50px" AutoInsertEmptyData="False" __designer:wfdid="w47" SelectedValue='<%# Bind("Operate") %>' DriverObject OnlyShowSelectText="False" FilterObject Filter Enabled="False"><asp:ListItem Selected="True" Value="1">入库</asp:ListItem>
</InfoLight:WebDropDownList>
</itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="操作日期" SortExpression="OpeDate">
                    <edititemtemplate>
<asp:Label id="Label1" runat="server" Width="150px" Text='<%# Bind("OpeDate") %>' __designer:wfdid="w51"></asp:Label> 
</edititemtemplate>
                    <footertemplate>
<asp:Label id="Label1" runat="server" Width="150px" Text='<%# Bind("OpeDate") %>' __designer:wfdid="w52"></asp:Label> 
</footertemplate>
                    <itemtemplate>
<asp:Label id="Label1" runat="server" Width="150px" Text='<%# Bind("OpeDate") %>' __designer:wfdid="w50"></asp:Label> 
</itemtemplate>
                </asp:TemplateField>
</columns>
        <rowstyle backcolor="#EFF3FB"></rowstyle>
        <editrowstyle backcolor="#2461BF"></editrowstyle>
        <selectedrowstyle backcolor="#D1DDF1" forecolor="#333333" font-bold="True"></selectedrowstyle>
        <pagerstyle backcolor="LightBlue" forecolor="White" horizontalalign="Center"></pagerstyle>
        <headerstyle backcolor="DeepSkyBlue" forecolor="White" font-bold="True"></headerstyle>
        <alternatingrowstyle backcolor="White" bordercolor="White"></alternatingrowstyle>
        <addnewrowcontrols>
                <InfoLight:AddNewRowControlItem ControlID="TextBox3" ControlType="TextBox" FieldName="StockId" />
                <InfoLight:AddNewRowControlItem ControlID="TextBox1" ControlType="TextBox" FieldName="SId" />
                <InfoLight:AddNewRowControlItem ControlID="TextBox2" ControlType="TextBox" FieldName="SName" />
                <InfoLight:AddNewRowControlItem ControlID="tbSType" ControlType="TextBox" FieldName="SType" />
                <InfoLight:AddNewRowControlItem ControlID="tbCount" ControlType="TextBox" FieldName="StockCount" />
                <InfoLight:AddNewRowControlItem ControlID="tbPrice" ControlType="TextBox" FieldName="SumPrice" />
                <InfoLight:AddNewRowControlItem ControlID="wrvServices_OfficeSupplies_StockEmpIdF"
                    ControlType="RefVal" FieldName="EmpId" />
                <InfoLight:AddNewRowControlItem ControlID="WebDropDownList2" ControlType="DropDownList"
                    FieldName="Operate" />
                <InfoLight:AddNewRowControlItem ControlID="Label1" ControlType="Label" FieldName="OpeDate" />
                <InfoLight:AddNewRowControlItem ControlID="tbTName" ControlType="TextBox" FieldName="TName" />
            </addnewrowcontrols>
        <totalcolumns>
                <InfoLight:GridViewTotalItem FieldName="StockCount" />
            </totalcolumns>
    </infolight:webgridview>
</asp:Content>
